package com.eastfair.home.api;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.WorkOvertimeAuditDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 加班审核 feign.
 *
 * @author dqq
 * @date 2022/10/20
 */
@Deprecated
@FeignClient(value = "home/workOvertimeAudit")
public interface WorkOvertimeAuditFeign {

    /**
     * 提交加班申请审核.
     *
     * @param workOvertimeAuditDTO the work overtime audit dto
     * @return the r
     */
    @PostMapping("/submit")
    R<Boolean> submitWorkOvertimeAudit(@RequestBody WorkOvertimeAuditDTO workOvertimeAuditDTO);

    /**
     * 取消加班申请审核.
     *
     * @param workOvertimeNumber the work overtime number
     * @return the r
     */
    @GetMapping("/cancel/{workOvertimeNumber}")
    R<Boolean> cancelWorkOvertimeAudit(@PathVariable("workOvertimeNumber") String workOvertimeNumber);
}